package com.market.plus.core.mapping;

public class DTOConfiguration {

   private IDMapping idMapping;

   public IDMapping getIdMapping() {
      return idMapping;
   }

   private DTOConfiguration(IDMapping idMapping) {
      this.idMapping = idMapping;
   }

   public static DTOConfiguration instance(IDMapping mapping) {
      DTOConfiguration dtoMappingConfigure = new DTOConfiguration(mapping);
      return dtoMappingConfigure;
   }

   public static DTOConfiguration instance() {
      DTOConfiguration dtoMappingConfigure = new DTOConfiguration(null);
      return dtoMappingConfigure;
   }
}
